package com.wudl.db.config;

/**
 * @ClassName : MyThreadLocal
 * @Description :
 * @Author :wudl
 * @Date: 2021-08-06 00:02
 */

public class MyThreadLocal {
    public static final ThreadLocal<String> local=new ThreadLocal<String>();

    public static String getDataSource(){
        return local.get();
    }

    public static void setDataSource(String dataSource){
        local.set(dataSource);
    }
}
